package com.warehouse_management.purchase.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.warehouse_management.purchase.model.Brand;
import com.warehouse_management.purchase.model.Type;
import com.warehouse_management.purchase.model.TypeCondition;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @PACKAGE_NAME: com.warehouse_management.purchase.dao
 * @NAME: ProductTypeDao
 * @USER: ZhouYongCheng
 * @DATE: 2022/10/3
 * @TIME: 3:00
 * @Description: 商品类型管理Dao层
 */
@Mapper
public interface ProductTypeDao extends BaseMapper<TypeCondition> {

    /**
     * 连小龙
     * 查询所有数据
     * @return
     */
    public List<TypeCondition> queryTypeList();


    /**
     * 连小龙
     * 通过条件模糊查询
     * @return
     */
    public List<TypeCondition> queryTypeListByCondition(TypeCondition type);


    /**
     * 连小龙
     * 添加类型
     * @return
     */
    public int addType(TypeCondition type);

    /**
     * 连小龙
     * 修改类型
     * @return
     */
    public int updateType(TypeCondition type);

    /**
     * 连小龙
     * 修改类型状态
     * @return
     */
    public int updateTypeStatus(TypeCondition type);

    /**
     * 连小龙
     * 查询所有类型
     * @return
     */
    List<Type> queryType();

    /**
     * 连小龙
     * 查询所有类型
     * @return
     */
    List<Brand> queryBrand();
}
